package com.zl.zsk.repository;

import com.zl.zsk.pojo.SysUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

/**
 * @author lxb
 * @version 1.0.0
 * @desc: 用户数据访问层
 * @date 2020-03-13 10:57
 */
public interface SysUserRepository extends JpaRepository<SysUser,Long>,JpaSpecificationExecutor {
    /**
     * 通过登录名查询用户
     * @param loginName
     * @return
     */
    Optional<SysUser> findSysUserByLoginName(String loginName);
}
